import request from '@/utils/request'

// 查询房源列表列表
export function listRoominfo(query) {
  return request({
    url: '/business/roominfo/list',
    method: 'get',
    params: query
  })
}



// 预约看房
export function yuyueHouse1() {
  return request({
    url: '/business/roominfo/yuyueHouse',
    method: 'get'
  })
}


// 查询房源列表详细
export function getRoominfo(id) {
  return request({
    url: '/business/roominfo/' + id,
    method: 'get'
  })
}

// 新增房源列表
export function addRoominfo(data) {
  return request({
    url: '/business/roominfo',
    method: 'post',
    data: data
  })
}

// 修改房源列表
export function updateRoominfo(data) {
  return request({
    url: '/business/roominfo',
    method: 'put',
    data: data
  })
}

// 删除房源列表
export function delRoominfo(id) {
  return request({
    url: '/business/roominfo/' + id,
    method: 'delete'
  })
}
